package com.zsrt.java.day20161226.lh.day161226.demo12;

public class ArrayDemo02 {
	public static void main(String[] args) {
		
		
		int[] ages=new int[3];
		
		
		
		int value1=ages[0];
		int value2=ages[1];
		int value3=ages[2];
		
		
		
		int len=ages.length;
		//怎么拿
		
		//怎么遍历
		for(int index=0;index<=len-1;index++){
			int value = ages[index];
			if(index==len-1){
				System.out.print(value);
				continue;
			}
			System.out.println(value+", ");
			
		}
		
		
		
	}

}
